﻿<?xml version="1.0" encoding="utf-8" ?>
<SourceAnalyzer Name="Exul's custom rules">
    <Description>
        Custom Exul's rules for StyleCop.
    </Description>
    <Properties>
        <IntegerProperty Name="LineLength" DefaultValue="130" FriendlyName="None" Description="None"/>
        <IntegerProperty Name="TabSize" DefaultValue="4" FriendlyName="None" Description="None"/>
    </Properties>
    <Rules>
        <RuleGroup Name="Spacing">
            <Rule Name="CodeLineMustNotEndWithWhitespace" CheckId="EL0001">
                <Context>
                    A code line must not contain spaces at the end.
                </Context>
            </Rule>
            <Rule Name="CodeFileMustNotEndWithWhitespace" CheckId="EL0002">
                <Context>
                    The last code line ends with a line break.
                </Context>
            </Rule>
            <Rule Name="LineIsTooLong" CheckId="EL0003">
                <Context>
                    Code line must be no longer than {0} characters, but now it has {1} characters.
                </Context>
            </Rule>
        </RuleGroup>
    </Rules>
</SourceAnalyzer>
